// 生成歌词和时间
splitWord(String word) {
  List lists = word.split('\n');
  var timeList = splitToList(lists, ']', 0, last: ']');
  var wordList = splitToList(lists, ']', 1);
  return [wordList, timeList];
}

// 分割字符串并转换List
Iterable<String?> splitToList(List lists, String splitted, int index, {String last = ''}) {
  return lists.map((val) {
    if (val != '') return val.toString().split(splitted)[index] + last;
    return '';
  }).toList();
}